import type { IContentConfig } from '@/components/types'
export const contentConfig: IContentConfig = {
  category: 'system',
  pageName: 'user',
  header: {
    title: '用户管理',
    btnContent: '新建用户'
  },
  propItems: [
    { type: 'selection', label: '选择', width: '60px', align: 'center' },
    { type: 'index', label: '序号', width: '80px', align: 'center' },

    {
      type: 'normal',
      label: '账号名称',
      prop: 'username',
      width: '120px',
      align: 'center'
    },
    {
      type: 'normal',
      label: '真实姓名',
      prop: 'realname',
      width: '120px',
      align: 'center'
    },
    {
      type: 'custom',
      slotName: 'gender',
      label: '性别',
      prop: 'gender',
      width: '90px',
      align: 'center'
    },
    {
      type: 'normal',
      label: '手机号码',
      prop: 'mobile',
      width: '150px',
      align: 'center'
    },
    {
      type: 'normal',
      label: '邮箱号码',
      prop: 'email',
      width: '220px',
      align: 'center'
    },
    {
      type: 'custom',
      slotName: 'status',
      label: '状态',
      prop: 'status',
      width: '90px',
      align: 'center'
    },
    {
      type: 'custom',
      slotName: 'departmentId',
      label: '部门',
      prop: 'departmentId',
      width: '120px',
      align: 'center'
    },
    {
      type: 'custom',
      slotName: 'roleId',
      label: '角色',
      prop: 'roleId',
      width: '120px',
      align: 'center'
    },

    { type: 'timer', label: '更新时间', prop: 'updatedAt', align: 'center' },

    { type: 'operation', label: '操作', width: '280px', align: 'center' }
  ]
}
